home *** CD-ROM | disk | FTP | other *** search
- Path: ida.his.se!henrik
- From: henrik@ida.his.se (Henrik Nordstrom)
- Newsgroups: comp.lang.c++,comp.os.linux.development.apps,comp.os.linux.misc
- Subject: Re: Are str* functions okay in C++?
- Followup-To: comp.lang.c++,comp.os.linux.development.apps,comp.os.linux.misc
- Date: 14 Mar 1996 21:38:20 GMT
- Organization: University of Skoevde
- Message-ID: <4ia3kc$1jb@mhost.ida.his.se>
- References: <4hpvi0$gt6@news.platinum.com> <Do54G9.4Ly.0.server@indra.com>
- NNTP-Posting-Host: august.ida.his.se
- X-Newsreader: TIN [version 1.2 PL2]
-
- Bear Giles (bear@) wrote:
-
- : The idea is that "buffer" is a captive memory leak -- you allocate a
- : large buffer once and never release it. That increases the runtime
- : size of your program, but eliminates the performance hit and possible
- : memory leaks from repeatedly allocating and deleting small blocks.
-
- I prefer to use local variables instead (and of course running in
- an environment where the stack space is enought). In most systems
- this has no or very low performance degration, supports multithreading,
- no memory leaks,...
-
- ---
- Henrik Nordstrom
- University of Skoevde
- Sweden
-
-